home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / listings / v_02_04 / 2n04024a < prev    next >
Text File  |  1991-02-24  |  442b  |  23 lines

  1.         Figure 1: Code generated by WINDOWS language modifier
  2.  
  3.  
  4. ; RetZero - a Windows-callable routine that just returns zero.
  5. ;
  6. RetZero proc    WINDOWS
  7.         push    ds
  8.         pop     ax
  9.         xchg    ax,ax
  10.         inc     bp
  11.         push    bp
  12.         mov     bp,sp
  13.         push    ds
  14.         mov     ds,ax
  15.  
  16.         mov     ax,0
  17.  
  18.         pop     ds
  19.         pop     bp
  20.         dec     bp
  21.         ret
  22. RetZero endp
  23.